/**
 * Document   : util function
 * Created on : Mar 16, 2013, 16:02:58 PM
 * Author     : duonghung1369
 *
 * */

/**
 * Generate html select tag.
 *
 */
function generateSelectTag(start, end, selectedIndex){
    var selectTag = '<select onchange=updateCartQuantity(this)>';
    for (var i = start; i <= end; i++) {
        if(i == selectedIndex){
            selectTag += '<option selected value="' + i + '">' + i + '</option>';
        }else{
            selectTag += '<option value="' + i + '">' + i + '</option>';
        }
        
    }
    selectTag += '</select>';

    return selectTag;
}
